import React from 'react'
import ReactDOM from 'react-dom'


class CreatePortal extends React.Component<any, any> {
  constructor(props: any) {
    super(props)
  }
  randerPorta = () => {
    return ReactDOM.createPortal(<div className="modal">modal</div>, document.body)
  }
  render() {
    return <div>{this.randerPorta()}</div>
  }
}
export default CreatePortal
